from django.urls import path
from api.views import account
from api.views import news
from api.views import news_test
from api.views import news_one_test
from api.views import topic
from api.views import comment
from api.views import favor
from api.views import favor_test
from api.views import celery_test
from api.views import account
from api.views import auction
app_name='api'
urlpatterns=[
    path('login/',account.LoginView.as_view(),name='login'),
    path('message/',account.MessageView.as_view(),name='message'),
    path('news/<int:pk>/',news_one_test.NewsRetrieveAPIView.as_view()),
    path('news/',news_test.NewsApiView.as_view()),
    path('topic/',topic.TopicApiView.as_view()),
    path('commentrecord/',comment.CommentApiView.as_view()),
    path('newsfavor/',favor_test.NewsFavorRecord.as_view()),
    path('celery/email/',celery_test.MyCeleryApiView.as_view()),
    #专场列表
    path('auction/',auction.AuctionListView.as_view()),
    path('auction/<int:pk>/',auction.AuctionDetailView.as_view()),
    path('auction/item/<int:pk>/',auction.AuctionItemDetailView.as_view()),
    path('auction/deposit/<int:pk>/',auction.AuctionItemDepositView.as_view()),
    path('auction/bid/',auction.BidApiView.as_view()),
]